﻿@model IEnumerable<QuanLyGiaoVuUI.Models.LopMonHoc.LopMonHocViewModel>

@{
    Layout = null;
}

<div id="main">
    <!--  start page-heading -->

    <div id="page-heading">
        <h3 style="text-align:center;">THỜI KHOÁ BIỂU @{Html.RenderAction("HocKyHienTai", "Common");} </h3>        
    </div>
    <br />
    <!-- end page-heading -->
    <div style="max-height: 700px;overflow: auto;">
    <table class="data display datatable">
        <tr>    
            <th class="sorting">STT</th>        
            <th class="sorting">Mã Lớp</th>
            <th class="sorting">Tên Môn học</th>            
            <th class="sorting">Họ Tên GV1</th>           
            <th class="sorting">Họ Tên GV2</th>
            <th class="sorting">Thứ</th>
            <th class="sorting">Ca</th>
            <th class="sorting">Phòng</th>
            <th class="sorting">Sĩ số</th>
            <th class="sorting">Loại Lớp</th>            
            <th class="sorting">Ghi Chú</th>            
        </tr>
    @{int i=1;}
    @foreach (var item in Model) {
        if (item.Thu != 0)
        {
        <tr class="gradeA odd">            
            <td class="odd gradeX">@(i++)</td>
            <td class="odd gradeX">                
                @Html.DisplayFor(modelItem => item.MaLopDayDu)
            </td>
            <td class="odd gradeX">
                @Html.DisplayFor(modelItem => item.MonHoc.TenMonHoc)
            </td>
            <td class="odd gradeX">
                @Html.DisplayFor(modelItem => item.GiangVien1.HoTenGV)
            </td>
            <td class="odd gradeX">
                @Html.DisplayFor(modelItem => item.GiangVien2.HoTenGV)
            </td>
            <td class="odd gradeX">
                @Html.DisplayFor(modelItem => item.Thu)
            </td>
            <td class="odd gradeX">
                @Html.DisplayFor(modelItem => item.TietDayString)
            </td>
            <td class="odd gradeX">
                @(item.Phong != null ? item.Phong : String.Empty)
            </td>
            <td class="odd gradeX">
                @Html.DisplayFor(modelItem => item.SiSoThucTe)
            </td>
            <td class="odd gradeX">
                @((item.LoaiLop==0?"LT":(item.LoaiLop==1?"TH 1":"TH 2")))
            </td>            
            <td class="odd gradeX">
                @*@Html.DisplayFor(modelItem => item.GhiChu)*@
            </td>            
        </tr>
    }
    }
    
    </table>
    </div>
</div>
